package com.li.temperature.chart.bean;

import com.li.temperature.chart.R;
import com.li.temperature.chart.util.Config;

import android.content.Context;

public class F1FileNode extends FileNode {

    public F1FileNode(Context mContext) {
        super(mContext);
        name = Config.F1;
        path = Config.F1_PATH;
        init();
    }

    @Override
    public void formatValueInt() {
        formatFreqValue();
    }

    @Override
    public void formatValueStr() {
        info = String.format("%s - %s : %d ", Config.F1, mContext.getString(R.string.f1_info), valueInt);
    }

    @Override
    public String getResult() {
        if (isRead) {
            return info;
        } else {
            return sourceData;
        }
    }
}
